import 'package:flutter/material.dart';
import 'config.dart';


class LoginBody extends StatefulWidget {
  
  @override
  createState() => new LoginBodyState();
}

class LoginBodyState extends State<LoginBody>{
  
  @override
  Widget build(BuildContext context){



    return new Scaffold(
      appBar: new AppBar(
        title: new Text("登录"),
      ),
      body: new Container(
        padding: const EdgeInsets.all(20.0),
        margin: const EdgeInsets.symmetric(horizontal: 8.0),
        child: new Column(

          children: <Widget>[
            new TextField(
              decoration: new InputDecoration(
                hintText: '用户名'  // hint = html 中的placeholder
              ),
            ),
            new TextField(
              decoration: new InputDecoration(
                hintText: '密码'
              ),
            ),
            new RaisedButton(
              onPressed: null,
              child: new Text('登录',style: new TextStyle(
                  color: Colors.black
                ),
              ),

            )
          ],
        ),

      ),
    );
  }
}